﻿using UnityEngine;
using System.Collections;

namespace Connections {

	public class NameCommand : ICommand {

		public string getCommand() {
			return "";
		}

		public void respond(string command, string content) {
			if(command.Equals("name")) {
				ServerManager.getInstance().setDeviceName(content);
			}
		}

		public bool needsToRespond() {
			return false;
		}
	}
}
